]> dgit.raspbian.org Git - gnome-shell.git/commit
global: drop incorrect memset
authorRay Strode <rstrode@redhat.com>
Wed, 19 Oct 2011 20:21:59 +0000 (16:21 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 19 Oct 2011 21:13:20 +0000 (17:13 -0400)
commitde352a309dfc3ac5c6573d95f13de0edadb5195d
tree1ab7c6ccddf67bcc1232b3c7633b444095850ab6
parentc573e7f9a17de730ec735b10b0cb95163dda575b
global: drop incorrect memset

shell_global_get_memory_info tries to zero initialize the output
parameter with memset, but it passes the wrong size (because of
a missing *).  There's no reason to do the memset, though. In the
normal case all members of the struct gets initialized before the
function returns anyway.

This commit drops the memset call in favor of one explicit 0 assignment
that only gets executed on on atypical platforms.

https://bugzilla.gnome.org/show_bug.cgi?id=662236
src/shell-global.c